package ooday03;

import ooday04.Animal;
import ooday04.LookHome;
import ooday04.Swim;

public class Dogs extends Animals implements Swimming {
    void eat() {
        System.out.println(age+"岁的，"+color+"色的狗狗"+name+"正在吃骨头");
    }

    @Override
    public void swim() {
        System.out.println(age+"岁的，"+color+"色的狗狗"+name+"正在游泳");
    }

    void lookHome() {
        System.out.println(age+"岁的，"+color+"色的狗狗"+name+"正在看家");
    }
    Dogs(String name, int age, String color){
        super(name,age,color);
    }
}
